package com.xhtranslate.common.vo;

/**
 * @author liuxuhuang
 * @version 1.0
 * @package com.service.enums
 * @date 2022/10/2 00:03:56
 * @description 返回类型
 */
public enum ResponseEnum {
    SUCCESS(200, "操作成功"),
    FAIL(500, "系统繁忙"),
    PARAMNULL(501, "参数为空"),
    PARAMEXCEPTION(502, "参数异常"),
    OVERCREDITLIMIT(503, "超过免费额度"),
    RESULTNULL(504, "返回结果为空"),
    OCRRESULTNULL(505, "图片识别结果为空");

    private Integer code;
    private String msg;

    ResponseEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
